package com.twang.stock.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import java.util.Objects;

/**
 * 东方财富：查看板块毛利率
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DfcfBanKuaiMaoLiLv implements Serializable {


    /**
     * code
     */
    @JSONField(name = "f12")
    private String code;

    /**
     * 板块
     */
    @JSONField(name = "f13")
    private String  banKuai;

    /**
     * 名称
     */
    @JSONField(name = "f14")
    private String  name;

    /**
     * 毛利率
     */
    @JSONField(name = "f49")
    private BigDecimal  mll;

    /**
     * 涨跌幅
     */
    @JSONField(name = "f3")
    private String  zhangDie;


    /**
     * 昨日涨跌幅
     */
    private BigDecimal  zrZhangDie;


    /**
     * 公司看點
     */
    private List<ThsGeGuReZDian> kanDian;



    /**
     * 成交额度/区间丈夫
     */
    private BigDecimal  cje;


    /**
     * 30分钟成交额
     */
    private BigDecimal  tradeVol30Min;

    /**
     * 30分钟成交额(昨日)
     */
    private BigDecimal  yesTodayTradeVol30Min;


    /**
     * 量比
     */
    private BigDecimal liangBi;


    /**
     * 标记连续上涨
     */
    private Boolean lianXuZhang;

    private ReDianHotRank reDianHotRank;

    /**
     * 连板次数
     */
    private ZhangTingBan zhangTingBan;


    /**
     * 归属板块
     */
    private String bk;


    /**
     * 涨停连扳信息表ID
     */
    private Long zhangTingId;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DfcfBanKuaiMaoLiLv memberVo = (DfcfBanKuaiMaoLiLv) o;
        return Objects.equals(getCode(), memberVo.getCode());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getCode());
    }

}
